/*
 * @Author: wuqingchun
 * @Date: 2023-08-16 14:09:25
 * @Description: ftp 客户端实现入口
 * @LastEditors: wuqingchun
 * @LastEditTime: 2024-01-10 19:34:17
 */
#include <stdio.h>
#include <unistd.h>

#include "ftpc.h"
#include "ftpc_select.h"
#include "ftpc_event.h"
#include "ftpc_stdin.h"
#include "ftpc_ctl.h"
#include "ftpc_dtp.h"
#include "ftpc_log.h"


FTPC_CLIENT_S g_stFTPCClient;

int main(int argc, char **argv)
{
    int iErr;

    g_stFTPCClient.enState = FTPC_STATE_INIT;
    g_stFTPCClient.enRecoverState = FTPC_STATE_INIT;
    g_stFTPCClient.usPort = FTPC_SERVER_PORT_DEFAULT;
    g_stFTPCClient.uiFlags = 0;

    FTPC_log_Init();
    FTPC_event_Init();
    FTPC_stdin_Init();
    FTPC_ctl_Init();
    FTPC_dtp_Init();

    FTPC_select_Schedule();

    return 0;
}